<?php 
$nav= '<a title="'.$task['Task']['name'].'" onclick="ajaxSubmit(\'addContent\',\'tasks/detail/'.$task['Task']['id'].'\')" href="javascript:;">'.$task['Task']['taskcode'].'</a>'.
 ' :: Deployment';


	

?>
<center>
<div style="clear:both;height:10px;">&nbsp;</div>
<fieldset style="width:100%">
    <legend><?php echo $nav;?></legend>
    <div>
	<div class="button"><a onclick="deactivateEditors(); if($('select[name=\'data[Deploy][status_id]\']').val()>0)ajax('listContent2','<?php echo $this->params['controller'] ?>/push');else alert('Please select host to deploy');" href="javascript:;" title="<?php _resource('push');?>"  > <span class="icon-32-upload"> </span></a></div>
    <div class="button"><a onclick="deactivateEditors();ajax('deployContent','<?php echo $this->params['controller'] ?>/index');" href="javascript:;" title="<?php _resource('refresh');?>"  > <span class="icon-32-purge"> </span></a></div>    

    

    <div style="float:right">
      <form action="#" method="post" name="filterForm" id="filterForm">
        <table>
        
          
          
          <tr>
            <td align="right">Host: &nbsp;          
            <?php echo $this->Form->input($uses[0].'.status_id', array('type'=>'select','options'=>$hosts,'default'=>intval($this->Session->read($uses[0].'.host_id')),'empty'=>'----',"class"=>"inputbox","label"=>"","div"=>"","error"=>"",'onchange'=>'if(this.value>0)ajax("listContent2","'.$this->params['controller'].'/host/" + this.value)'));?>  
             
            </td>
          </tr>
          
        </table>
      </form>
    </div>
    <div class="clear"></div>         
    </div> 
       
    <div id="listContent2">
    	<script>
    		ajax('listContent2','<?php echo $this->params['controller'] ?>/lists');
    	</script>
    </div>    
</fieldset>



</center>
